<!DOCTYPE html>
<html lang="en">
<head>
     <meta charset="UTF-8">
    <title>相关视频列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="__STATIC__/admin/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="__STATIC__/admin/css/font.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="__STATIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/xadmin.js"></script>

</head>
<body>
    {include file="public:header"}
        <div class="wrapper">
            {include file="public:leftside"}
    <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form xbs" action="" >
                <div class="layui-form-pane" style="text-align: center;">
                  <div class="layui-form-item" style="display: inline-block;">
                    <div class="layui-input-inline">
                      <input type="text" name="username"  placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="width:80px">
                        <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                    </div>
                  </div>
                </div> 
            </form>
            <xblock><a href="{:url('admin/mastervideo/create')}"><button class="layui-btn"  onclick="member_add('添加用户','create.html','600','500')"><i class="layui-icon">&#xe608;</i>添加</button></a><span class="x-right" style="line-height:40px">共有数据：88 条</span></xblock>
            <table class="layui-table">
                <thead>
                    <tr>
                        <th style="text-align:center;">
                            编号
                        </th>
                        <th style="text-align:center;">
                            视频名称
                        </th>
                        <th style="text-align:center;">
                            所属大师
                        </th>
                        
                        <th style="text-align:center;">
                            视频介绍
                        </th>
                         <th style="text-align:center;">
                            视频
                        </th>
                        
                        <th style="text-align:center;">
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="mastervideo" id="vo"}
                    <tr>
                      <td style="text-align:center;">{$i}</td>
                      <td style="text-align:center;">{$vo.mastervideo_name}</td>
                      <td style="text-align:center;">{$vo.master_name}</td>
                      <td style="text-align:center;">{$vo.mastervideo_intro}</td>
                      <td style="width: 150px;height: 100px"><video src="__STATIC__/admin/video/{$vo.mastervideo_video}" style="width: 150px;height: 100px;"controls="controls" preload="metadata" ></video></td>
                         <td class="td-manage">
                            <a href="{:url('admin/mastervideo/edit',['mastervideo_id'=>$vo.mastervideo_id])}"
                            class="ml-5" style="text-align:center;">
                                <i class="layui-icon">&#xe642;</i>
                            </a>
                            <a href="{:url('admin/Mastervideo/delete',['id'=>$vo.mastervideo_id])}" 
                            style="text-align:center;">
                                <i class="layui-icon">&#xe640;</i>
                            </a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>

</body>
</html>